// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import echarts from 'echarts' // 引入echarts
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import mystore from './store/index'
import  VueResource  from 'vue-resource'



Vue.prototype.$echarts = echarts
Vue.use(ElementUI)
Vue.use(VueResource)



Vue.config.productionTip = false

// 4. 挂载到App。
// 记得要通过 router 配置参数注入路由，
// 从而让整个应用都有路由功能

new Vue({
  router,
  store:mystore, //如果只写:store，这是ES6的写法，换成ES5就是：store:store
  render: h => h(App)
}).$mount('#app')



